package createType.AbstractFactory.example.maze;

public class Door implements MapSite {
	
	private Boolean isOpen;
	private Path path =new Path();
	
	public Door(){
		
	}
	
	public Door(Room from,Room to){
		isOpen = true;
		setPath(from,to);
	}
	
	public Door(Boolean isopen,Room from,Room to){
		isOpen = isopen;
		setPath(from,to);
	}
	
	

	public Boolean getIsOpen() {
		return isOpen;
	}

	public void setIsOpen(Boolean isOpen) {
		this.isOpen = isOpen;
	}

	public Path getPath() {
		return path;
	}

	public void setPath(Path path) {
		this.path = path;
	}
	
	public void setPath(Room from,Room to){
		path.setLength(2);
		path.getNodes().add(from);
		path.getNodes().add(to);
	}

	@Override
	public void enter() {
		// TODO Auto-generated method stub

	}

}
